package org.cn.lennon.mybatis.config;

import org.cn.lennon.mybatis.executors.OperationType;

public class MapperStatment {
	
	private String id;
	private String sql;
	private Class<?> resultType; 
	private OperationType type;
	
	public MapperStatment(String id, String sql) {
		super();
		this.id = id;
		this.sql = sql;
	}
	
	public MapperStatment(String id, String sql, Class<?> resultType, OperationType type) {
		super();
		this.id = id;
		this.sql = sql;
		this.resultType = resultType;
		this.type = type;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getSql() {
		return sql;
	}
	public void setSql(String sql) {
		this.sql = sql;
	}
	public Class<?> getResultType() {
		return resultType;
	}
	public void setResultType(Class<?> resultType) {
		this.resultType = resultType;
	}

	public OperationType getType() {
		return type;
	}

	public void setType(OperationType type) {
		this.type = type;
	}
	
}
